import React from 'react';
import ReactDOM from 'react-dom';

import App from './App';

// 引入字体图标
import "./assets/fonts/iconfont.css"
import "./index.css"

// 引入 react-redux  负责将store和组件连接起来
import { Provider } from "react-redux";
// 引入store
import store from './store';

ReactDOM.render(
  // 2 将App用 Provider 标签包裹起来  目的：实现将store通过属性的方式传递到App组件上
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);
